package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import com.codegeek.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 监测点位对象 slope_point
 *
 * @author codegeek
 * @date 2020-02-17
 */
@Data
public class SlopePoint extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 监测点位ID
     */
    private Long pointId;

    /**
     * 点位名称
     */
    @Excel(name = "点位名称")
    private String pointName;

    /**
     * 纬度
     */
    @Excel(name = "纬度 ")
    private Double lat;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private Double lon;

    /**
     * 高度
     */
    @Excel(name = "高度")
    private Double altitude;

    /**
     * 1-启用，0-停用
     */
    @Excel(name = "1-启用，0-停用")
    private Integer isValid;

    /**
     * 设备维修次数
     */
    @Excel(name = "设备维修次数")
    private Integer repairTimes;

    /**
     * 所属目标
     */
    @Excel(name = "所属目标")
    private Long target;

    public void setPointName(String pointName) {
        this.pointName = new ReplaceIllegalChar().replace(pointName);
    }
}
